<?php 


include './Core/function.php';

if($_POST){
	$res = $_POST;

	foreach ($res as $key => $value) {
		if($value==''){
			error('index.php','昵称或留言不能为空');
		}
	}

	$data = include './data.php';
	$data[]=$res;
	$str = var_export($data,true);
	$str = "<?php 
	return  ". $str ." 
	?>";
	file_put_contents('./data.php', $str);
	success('index.php','修改成功');
}else{
	error('index.php','非法操作');
}


 ?>